﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Warehouse.Core;
using FluentNHibernate.Mapping;

namespace Tanmia.Warehouse.NHibernateRepository.Mapping
{
    public class ItemUnitPriceMap : FluentNHibernate.Mapping. ClassMap<ItemUnitPrice>
    {
        public ItemUnitPriceMap()
        {
            Table("ItemUnitPrice");

            Id(x => x.ItemUnitPriceID).Not.Nullable().GeneratedBy.Identity().Unique();
            Map(x => x.UnitPrice).Not.Nullable();
            References(x => x.PriceName, "PriceNameID").Not.Nullable();
        }
    }
}
